package com.czbank.financing.mapper;

import com.czbank.financing.Entity.Manipulate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;


public interface ManipulateMapper {

    @Select("select * from manipulate where id=#{id}")
    public Manipulate selectManipulateById(@Param("id") long id);

    @Select("select * from manipulate")
    public List<Manipulate> allManipulate();

    @Insert("insert into manipulate (manipulate_name,manipulate_describe,creationtime) values(#{manipulateName},#{manipulateDescribe},#{creationtime})")
    public int InsertManipulate(@Param("manipulateName") String manipulateName,@Param("manipulateDescribe") String manipulateDescribe,@Param("creationtime") Date creationtime);


}
